﻿@{
    ViewBag.Title = "GroupCreate";
    Layout = "~/Views/Shared/_Index.cshtml";

}
<div id="content-container" class="container">
    <div class="panel panel-default">
        <div class="panel-heading"><h2 class="panel-title">创建小组</h2></div>
        <div class="panel-body">
            <form id="user-group-form" class="form-horizontal" method="post" action="/Group/GroupCreate">
                
                <div class="form-group">
                    <label for="richeditor-body-field" class="control-label">小组名称</label>
                    <div class="controls">
                        <input type="text" id="group_grouptitle" name="GroupName" class="form-control"style="width:700px">
                    </div>
                </div>
                <div class="form-group">
                    <label for="richeditor-body-field" class="control-label">小组介绍</label>
                    <div class="controls">
                        <script id="container" name="container" type="text/plain">
                        </script>
                        <script type="text/javascript">
                            var editor = UE.getEditor('container')
                        </script>
                    </div>
                    </div>

                <script src="~/kindeditor（文本域）/kindeditor-min.js"></script>
                    <script type="text/javascript">
    KindEditor.ready(function (K) {
        var editor = K.create('#container', {
            //上传管理
            uploadJson: 'kindeditor/asp.net/upload_json.ashx',
            //文件管理
            fileManagerJson: 'kindeditor/asp.net/file_manager_json.ashx',
            allowFileManager: true,
            //设置编辑器创建后执行的回调函数
            afterCreate: function () {
                var self = this;
                K.ctrl(document, 13, function () {
                    self.sync();
                    K('form[name=example]')[0].submit();
                });
                K.ctrl(self.edit.doc, 13, function () {
                    self.sync();
                    K('form[name=example]')[0].submit();
                });
            },
            //上传文件后执行的回调函数,获取上传图片的路径
            afterUpload: function (url) {
                alert(url);
            },
            //编辑器高度
            width: '100px',
            //编辑器宽度
            height: '200px;',
            //配置编辑器的工具栏
            items: [
            'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
            'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
            'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
            'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
            'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
            'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
            'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
            'anchor', 'link', 'unlink', '|', 'about'
            ]
        });
        prettyPrint();
    });
                    </script>

                <div class="row">
                    <div class="col-md-7 col-md-offset-2">
                        <button id="group-save-btn" data-submiting-text="正在创建" type="submit" class="btn btn-primary">创建</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>